const mongoose = require('mongoose');
const url = 'mongodb://localhost:27017/blog'; 

// 链接库 blog
mongoose.connect(url);

module.exports = mongoose;